package com.aiyige.utils;

import android.os.AsyncTask;

import com.aiyige.base.api.ApiManager;
import com.aiyige.model.request.CreateCustomerRequest;

public class CrmUtil {
    public static void createCustomer(final String sellerId) {
        new AsyncTask<Object, Object, Object>() {
            @Override
            protected Object doInBackground(Object... objects) {
                try {
                    ApiManager.getService()
                            .createCustomer(CreateCustomerRequest.newBuilder()
                                    .sellerId(sellerId)
                                    .build()).execute();
                    return null;
                } catch (Exception e) {
                    return e;
                }
            }
        }.execute();
    }
}
